import request from '@/utils/request'

export default {
	//分页查询
	getCommentList(current,size,courseId) {
		return request({
			url: `/eduService/comment/getComments/${courseId}/${current}/${size}`,
			method: 'get',
		})
	},
	// 添加评论
	addComment(comment){
		return request({
			url: `/eduService/comment/addComment`,
			method: 'post',
			data:comment
		})
	}
}
